import React, { Component } from 'react'

export default class Login extends Component {

  login() {
    localStorage.setItem('loginUser', '大牧')
  }
  render() {
    return (
      <div>
        <h2>登录页面</h2>
        <button onClick={this.login}>登录</button>
      </div>
    )
  }
}
